package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.pojo.CheckItem;
import com.itheima.health.pojo.Menu;
import com.itheima.health.pojo.Role;

import java.util.List;

public interface RoleService {


    Role findById(Integer id);

    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    void add(Integer[] ids,Integer[] menuIds, Role role);

    List<Integer> findPermissionIdsByRoleId(Integer id);

    void edit(Role role, Integer[] permissionIds,Integer[] menuIds);

    void delete(Integer id);

    List<CheckItem> findAll();

    List<Menu> findAllForMenu();

    List<Integer> findMenuIdsByRoleId(Integer id);
}
